-- GENERATED SPELL FOR [Timbermaw Shaman] --


function spell0_6188(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_6188', 3000, 1)
end

function spell1_6188(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(20295,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6188', 3000, 1)
end

function spell2_6188(pUnit, Event) --@Lightning Cloud,n/a--
pUnit:FullCastSpellOnTarget(6535,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6188', 18000, 1)
end

function Sorts_6188(pUnit, Event)
local choix_sorts_6188 = math.random(0, 2)
if choix_sorts_6188 == 0 then
pUnit:RegisterEvent('spell0_6188', 1, 1)
end
if choix_sorts_6188 == 1 then
pUnit:RegisterEvent('spell1_6188', 1, 1)
end
if choix_sorts_6188 == 2 then
pUnit:RegisterEvent('spell2_6188', 1, 1)
end
end

function mob6188_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6188', math.random(1500, 3000), 1)
end

function mob6188_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6188_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6188_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6188, 1, 'mob6188_Action')
RegisterUnitEvent(6188, 2, 'mob6188_Leave')
RegisterUnitEvent(6188, 3, 'mob6188_Kill')
RegisterUnitEvent(6188, 4, 'mob6188_Die')
